using System;

namespace Mbl.ParameterizedTest
{
    public class AssertionResult
    {
        public bool Holds { get; }

        public string ErrorMessage { get; }

        protected AssertionResult(bool assertionHolds, string errorMessage)
        {
            Holds = assertionHolds;
            ErrorMessage = errorMessage;
        }

        public static readonly AssertionResult Success = new AssertionResult(true, String.Empty);

        public static AssertionResult Error(string errorMessage)
        {
            return new AssertionResult(false, errorMessage);
        }
    }
}